home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_987 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  380 b   |  17 lines

  1. on(release){
  2.    if(_root.magRune >= 8 && _root.windRune >= 4 && this.timey.timer == 100)
  3.    {
  4.       _root.magRune -= 8;
  5.       _root.windRune -= 4;
  6.       this.timey.timer = 0;
  7.       this.timey.timeIt = 0.8;
  8.       this.timey._visible = true;
  9.       _root.bigR._visible = true;
  10.       _root.bigR.play();
  11.    }
  12.    else
  13.    {
  14.       _root.messy = "Not enough Runes";
  15.    }
  16. }
  17.